package com.toocms.jinjuhang.data

data class User(
    var member_id: String? = "",
    var organization_id: String? = "",
    var member_sn: String? = "",
    var avatar: String? = "",
    var avatar_path: String? = "",
    var nickname: String? = "",
    var balance: String? = "",
    var level: String? = "",
    var real_name: String? = "",
    var mobile: String? = "",
    var gender: String? = "",
    var birthday: String? = "",
    var city_id: String? = "",
    var city_name: String? = "",
    var text: String? = "",
    var recharge: String? = "",
    var cost: String? = "",
    var forpay: String? = "",
    var forsend: String? = "",
    var forsign: String? = "",
    var errcode: String? = "",
    var forcomm: String? = "",
    var has_wechat: String? = "",
    var account_info:String?=""
) {
    var today_points: String? = ""
        get() {
            return if (!field.isNullOrEmpty()) field else "00"
        }
    var total_points_in: String? = ""
        get() {
            return if (!field.isNullOrEmpty()) field else "00"
        }
    var points_cost: String? = ""
        get() {
            return if (!field.isNullOrEmpty()) field else "00"
        }
    var points: String? = ""
        get() {
            return if (!field.isNullOrEmpty()) field else "00"
        }
}
